package com.shbt.idao;

import java.util.List;

import com.shbt.entity.TReleaseBuyMoney;

/**
 * Interface for TReleaseBuyMoneyDAO.
 * 
 * @author MyEclipse Persistence Tools
 */

public interface ITReleaseBuyMoneyDAO {
	/**
	 * Perform an initial save of a previously unsaved TReleaseBuyMoney entity.
	 * All subsequent persist actions of this entity should use the #update()
	 * method. This operation must be performed within the a database
	 * transaction context for the entity's data to be permanently saved to the
	 * persistence store, i.e., database. This method uses the
	 * {@link javax.persistence.EntityManager#persist(Object)
	 * EntityManager#persist} operation.
	 * 
	 * <pre>
	 * EntityManagerHelper.beginTransaction();
	 * ITReleaseBuyMoneyDAO.save(entity);
	 * EntityManagerHelper.commit();
	 * </pre>
	 * 
	 * @param entity
	 *            TReleaseBuyMoney entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(TReleaseBuyMoney entity);

	/**
	 * Delete a persistent TReleaseBuyMoney entity. This operation must be
	 * performed within the a database transaction context for the entity's data
	 * to be permanently deleted from the persistence store, i.e., database.
	 * This method uses the
	 * {@link javax.persistence.EntityManager#remove(Object)
	 * EntityManager#delete} operation.
	 * 
	 * <pre>
	 * EntityManagerHelper.beginTransaction();
	 * ITReleaseBuyMoneyDAO.delete(entity);
	 * EntityManagerHelper.commit();
	 * entity = null;
	 * </pre>
	 * 
	 * @param entity
	 *            TReleaseBuyMoney entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(TReleaseBuyMoney entity);

	/**
	 * Persist a previously saved TReleaseBuyMoney entity and return it or a
	 * copy of it to the sender. A copy of the TReleaseBuyMoney entity parameter
	 * is returned when the JPA persistence mechanism has not previously been
	 * tracking the updated entity. This operation must be performed within the
	 * a database transaction context for the entity's data to be permanently
	 * saved to the persistence store, i.e., database. This method uses the
	 * {@link javax.persistence.EntityManager#merge(Object) EntityManager#merge}
	 * operation.
	 * 
	 * <pre>
	 * EntityManagerHelper.beginTransaction();
	 * entity = ITReleaseBuyMoneyDAO.update(entity);
	 * EntityManagerHelper.commit();
	 * </pre>
	 * 
	 * @param entity
	 *            TReleaseBuyMoney entity to update
	 * @return TReleaseBuyMoney the persisted TReleaseBuyMoney entity instance,
	 *         may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public TReleaseBuyMoney update(TReleaseBuyMoney entity);

	public TReleaseBuyMoney findById(Integer id);

	/**
	 * Find all TReleaseBuyMoney entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the TReleaseBuyMoney property to query
	 * @param value
	 *            the property value to match
	 * @return List<TReleaseBuyMoney> found by query
	 */
	public List<TReleaseBuyMoney> findByProperty(String propertyName,
			Object value);

	public List<TReleaseBuyMoney> findByHopePrice(Object hopePrice);

	/**
	 * Find all TReleaseBuyMoney entities.
	 * 
	 * @return List<TReleaseBuyMoney> all TReleaseBuyMoney entities
	 */
	public List<TReleaseBuyMoney> findAll();
}